package com.woniu.api;

import com.woniu.form.AdminForm;
import com.woniuxy.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author 胡八一
 * @date 2021/05/21 16:29
 */
@FeignClient(value = "boss",contextId = "rent")
public interface  BossApi {
    //后台用户表-增加用户
    @PostMapping("/addAdmin")
    public Result addAdmin(@RequestBody AdminForm adminForm);
    //后台用户表-删除用户
    @DeleteMapping("/deleteAdmin")
    public Result deleteAdmin(@RequestParam("adminId")Integer adminId);
    //后台用户表-修改用户
    @PutMapping("/updateAdmin")
    public Result updateAdmin(@RequestBody AdminForm adminForm);
    //后台用户表-查询用户
    @GetMapping("/getAllAdmin")
    public Result getAllAdmin();
}
